package com.boboPlanet.xxl;

import com.boboPlanet.comm.constance.CommInstance;
import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.core.env.Environment;

/**
 * Hello world!
 *
 */
@SpringBootApplication
@Slf4j
public class XxlJobMiddleApplication {
    public static void main(String[] args) {

        ConfigurableApplicationContext context = SpringApplication.run(XxlJobMiddleApplication.class, args);
        Environment environment = context.getBean(Environment.class);

        log.info("波波星球 ===> 【定时任务】服务启动成功,port:" + environment.getProperty(CommInstance.SERVER_PORT) + "==> serverName:" + environment.getProperty(CommInstance.SERVER_NAME));
    }
}
